package com.hnichr.ump.talent.library.service.impl;

import com.hnichr.ump.common.talent.library.entity.EducationInfo;
import com.hnichr.ump.common.talent.library.service.EducationInfoService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class EducationInfoServiceImpl extends BaseServiceImpl<EducationInfo> implements EducationInfoService {
    @Override
    @Transactional(readOnly = true)
    public List<EducationInfo> getListByResumeId(String resumeId) {
        return JpaUtil.linq(EducationInfo.class).equal("resumeId",resumeId).list();
    }

    @Override
    @Transactional(readOnly = true)
    public List<EducationInfo> getListBySyncDate(String syncDate){
        return JpaUtil.linq(EducationInfo.class).equal("syncDate",syncDate).list();
    }
}
